@echo off

set MAVEN_REPO=C:\Users\22399\.m2\repository
set SPRING_BOOT_VERSION=3.2.0

set CLASSPATH=target\classes

REM 添加Spring Boot核心依赖
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\boot\spring-boot\%SPRING_BOOT_VERSION%\spring-boot-%SPRING_BOOT_VERSION%.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\boot\spring-boot-autoconfigure\%SPRING_BOOT_VERSION%\spring-boot-autoconfigure-%SPRING_BOOT_VERSION%.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\boot\spring-boot-starter\%SPRING_BOOT_VERSION%\spring-boot-starter-%SPRING_BOOT_VERSION%.jar

REM 添加Spring Framework核心依赖
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\spring-context\6.1.1\spring-context-6.1.1.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\spring-web\6.1.1\spring-web-6.1.1.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\spring-beans\6.1.1\spring-beans-6.1.1.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\spring-core\6.1.1\spring-core-6.1.1.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springframework\spring-webmvc\6.1.1\spring-webmvc-6.1.1.jar

REM 添加SpringDoc依赖
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springdoc\springdoc-openapi-starter-webmvc-ui\2.3.0\springdoc-openapi-starter-webmvc-ui-2.3.0.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springdoc\springdoc-openapi-starter-common\2.3.0\springdoc-openapi-starter-common-2.3.0.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\org\springdoc\springdoc-openapi-core\2.3.0\springdoc-openapi-core-2.3.0.jar

REM 添加其他常见依赖
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\com\fasterxml\jackson\core\jackson-databind\2.15.2\jackson-databind-2.15.2.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\io\swagger\core\v3\swagger-core\2.2.20\swagger-core-2.2.20.jar
set CLASSPATH=%CLASSPATH%;%MAVEN_REPO%\io\swagger\core\v3\swagger-annotations\2.2.20\swagger-annotations-2.2.20.jar

REM 显示类路径信息
echo Classpath set with dependencies

REM 启动应用程序
echo Starting Blind Box Application...
java -cp "%CLASSPATH%" com.downbox.BlindBoxApplication